import { Base } from "../../utils/base.js"

class Video extends Base {
  constructor() {
    super();
  }

  //详情
  detail(params, callback) {
    var params = {
      url: 'product/index',
      data: params,
      type: 'post',
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(params);
  }
  //列表
  lists(params, callback) {
    params.page = params.page ? params.page : 1;
    params.num = params.num ? params.num : 10;
    var params = {
      url: 'live/index?page=' + params.page + '&num=' + params.num,
      data: params,
      type: 'post',
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(params);
  }
};

export { Video };